/*******************************************************************************

  Paying Outsourced Labor: Direct Evidence from Linked Temp Agency-Worker-Client Data

  By Andres Drenik, Simon Jäger, Pascuel Plotkin and Benjamin Schoefer
	January 7th, 2021

	DESCRIPTION: Installs required Stata packages + sets directory structure



*******************************************************************************/




********************************************************************************
***** Preliminaries
********************************************************************************


********************************************************************************
* Installing Packages
********************************************************************************
scalar install_packages = 0
if scalar(install_packages) == 1 {

	ssc install gtools
	ssc install winsor2
	ssc install unique
	ssc install reghdfe
	ssc install outreg2
	ssc install binscatter


}

********************************************************************************
* Set scheme
********************************************************************************
set scheme s2color

********************************************************************************
* Set seed to ensure replicability
********************************************************************************
set seed 19950808

********************************************************************************
* File directories -- home defined in the Master Do File
********************************************************************************

* Location of the raw data
global pathinit_server = "C:\Users\UsuColumbia1\SIPA Dataset"
global project_folder_server = "C:\Users\UsuColumbia1\TempEmployment"
global project_folder_local = "C:\Users\pascu\Dropbox\TempEmployment\"
global utilities = "C:\Users\UsuColumbia1\TempEmployment\utilities"

* Location of inputs
global input = "$project_folder_server\Data_Cleaning\Input\Datasets"

* Location of user provided data
global original_data = "$pathinit_server\Input"

* Location of the Filtered Dataset
global Data_with_filter = "D:\SIPA Dataset\Output"

* Location of the results data from which figures/tables are generated
global Results = "$project_folder_server\Empirical_Analysis\Output\Datasets"

* Location of intermediate outputs for Data cleaning
global intermediate_data_clea = "$project_folder_server\Data_Cleaning\Output\Datasets"

* Location of intermediate Datasets for Empirical Analysis
global intermediate_data_emp = "$project_folder_server\Empirical_Analysis\Output\Datasets"

*Location of EPH
global EPH = "$project_folder_local\Empirical_Analysis\Alternative datasets\LFS"

* Location of do-files
global dofiles = "$project_folder_server\codes"

* Location to store the log files
global logs = "$project_folder_server\logs"

